Skip to content

Source map data grabber#113

Draft
aidenybai wants to merge 14 commits intomainfrom
cursor/source-map-data-grabber-d507
Draft

Source map data grabber#113
aidenybai wants to merge 14 commits intomainfrom
cursor/source-map-data-grabber-d507

Conversation

@aidenybai
Copy link
Owner

@aidenybai aidenybai commented Jan 9, 2026

Add source-map-grabber.ts to provide utilities for extracting source map data from bippy's cache and specified URLs.

This file implements functions to retrieve filename-to-fileContent mappings from bippy's sourceMapCache and by fetching source maps from given URLs, supporting both standard and indexed source maps, and handling WeakRef entries in the cache.


Open in Cursor Open in Web


Summary by cubic

Add source map grabbing utilities and integrate them into getElementContext to show inline source snippets in stack output for Next apps. Also freeze toolbar animations and pseudo states during hover, and disable interactions when collapsed, to reduce flicker while inspecting.

  • New Features

    • getSourceMapDataFromCache, getSourceMapDataForUrl, getSourceMapDataFromScripts, and getSourceMapData to merge cached and fetched data.
    • getElementContext: when source maps are available, renders a small source snippet around the frame line with file:line[:col], using normalized filenames and handling indexed maps.
    • Caches merged source map data in-memory to avoid refetching across calls.
  • Dependencies

    • Added TypeScript ^5.9.3 to devDependencies; updated pnpm lockfile.

Written for commit 9e2fe65. Summary will update on new commits.

@cursor
Copy link

cursor bot commented Jan 9, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link

vercel bot commented Jan 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
react-grab-website Ready Ready Preview, Comment Jan 29, 2026 8:03am

cursoragent and others added 12 commits January 28, 2026 20:10
Adds a new module for grabbing source map data from bundles.

Co-authored-by: aiden <aiden@million.dev>
Co-authored-by: aiden <aiden@million.dev>
Co-authored-by: aiden <aiden@million.dev>
Co-authored-by: aiden <aiden@million.dev>
Co-authored-by: aiden <aiden@million.dev>
Co-authored-by: aiden <aiden@million.dev>
Co-authored-by: aiden <aiden@million.dev>
Co-authored-by: aiden <aiden@million.dev>
Co-authored-by: aiden <aiden@million.dev>
Co-authored-by: aiden <aiden@million.dev>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 29, 2026

Open in StackBlitz

@react-grab/cli

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/cli@113

grab

npm i https://pkg.pr.new/aidenybai/react-grab/grab@113

@react-grab/ami

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/ami@113

@react-grab/amp

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/amp@113

@react-grab/claude-code

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/claude-code@113

@react-grab/codex

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/codex@113

@react-grab/cursor

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/cursor@113

@react-grab/droid

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/droid@113

@react-grab/gemini

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/gemini@113

@react-grab/opencode

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/opencode@113

react-grab

npm i https://pkg.pr.new/aidenybai/react-grab@113

@react-grab/relay

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/relay@113

commit: 51022ed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants